//数据持久化工具

import 'package:shared_preferences/shared_preferences.dart';

class MySharedPreferences {

  static setSearchKeyHistoryList(List<String> list) async{
    SharedPreferences prefs =  await SharedPreferences.getInstance();
    prefs.setStringList("key_searchkey_history", list);
  }
  static Future<List<String>> getSearchKeyHistoryList() async{
    SharedPreferences prefs =  await SharedPreferences.getInstance();
    List list = prefs.getStringList("key_searchkey_history");
    return list;
  }
}
